export default (record: Record<string, unknown>):any => {
  const obj: Record<string, unknown> = {};
  Object.keys(record).forEach((key: string) => {
    const value = record[key] as any;
    if (value) obj[key] = !isNaN(value)? ~~value: value;
  });
  return obj;
}
